package com.javasm.adminapi.module.product1.controller;

import com.javasm.adminapi.common.R;
import com.javasm.adminapi.module.product1.entity.GgBrand;
import com.javasm.adminapi.module.product1.service.GgBrandService;
import com.javasm.adminapi.module.product1.service.GgGoodsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @className: GgBrandController
 * @description:
 * @author: lrg
 * @date: 2025/10/16 10:57
 * @version: 0.1
 * @since: jdk17
 */
@RestController
@RequestMapping("/GgBrand")
public class GgBrandController {

    @Resource
    GgBrandService ggBrandService;
    @GetMapping("/listAllBrand")
    public R listAllBrand(){
        List<GgBrand> list = ggBrandService.list();
        return R.ok(list);
    }

    @GetMapping("/listAllBrand1")
    public R listAllBrand1(){
        List<GgBrand> list =ggBrandService.listAll();
        return R.ok(list);
    }



}
